﻿@model GroupShop.Web.Models.ProductViewModel
@{
    ViewBag.Title = "Index";
}
@if (Model.Products != null)
{
    int i = 0;
    foreach (var p in Model.Products)
    {        
    
    <div class="item @((++i) % 2 == 0 ? "odd" : string.Empty)">
        <img src="http://p0.meituan.net/308.188/deal/201205/04/cgv_0504165444.jpg" />
        <a href="http://p0.meituan.net/308.188/deal/201205/04/cgv_0504165444.jpg" class="title">
            【上海】仅售15.8元！价值20元的紫燕百味鸡20元代金券1</a>
        <div class="detail ">
            <ul class="info">
                <li class="price">
                    <label>
                        现价</label>
                    <span>¥</span>@p.CurrentPrice </li>
                <li>
                    <label>
                        原价
                    </label>
                    <del><span>¥</span> @p.CurrentPrice</del></li>
                <li>
                    <label>
                        折扣
                    </label>
                    @p.Discount 折</li>
            </ul>
            <ul class="status">
                <li class="volume"><strong>1234569</strong>人已购买</li>
                <li class="timeout">
                    <label>
                        剩余</label><span id="counter-643376"><strong>1</strong>小时<strong>14</strong>分<strong>47</strong>秒</span>
                </li>
                @if (p.IsNewProduct)
                {
                    <li class="newtag"></li>}
            </ul>
        </div>
        <div class="action">
            <label>
                <span>¥</span> @p.CurrentPrice</label>
            <a hidefocus="true" href="http://sh.meituan.com/deal/643376.html" rel="nofollow"
                target="_blank" data-mtevent='{"ca":"InnerLink","ac":"click","la":"deal\/see","id":643376,"tf":"all","geo":"all","st":"default","new":0,"pg":1,"pos":1,"sr":"button"}'>
                去看看</a>
        </div>
    </div>
    }
}
@Html.Partial("PagerPartial", Model.Pager)
